/*
 * Powered By  huangzl QQ: 272950754
 * Web Site: http://www.hehenian.com
 * Since 2008 - 2018
 */

package com.mingsoft.cms.entity;

import org.apache.ibatis.type.Alias;

import com.mingsoft.basic.entity.BasicEntity;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author  huangzl QQ: 272950754
 * @version 1.0
 * @since 1.0
 */


@Alias("insuranceEntity")
public class InsuranceEntity  extends BasicEntity  implements java.io.Serializable{	
	
	//columns START
	private java.lang.Integer insId;
	private int[]  insIds;
	private java.lang.String title;
	private java.lang.Integer companyId;
	private String companyName;
	private String categoryTitle;
	private java.lang.String property;
	private java.lang.String linkUrl;
	private java.lang.Integer insType;
	private java.lang.String keyword;
	private java.lang.String soruce;
	private java.lang.Integer sort;
	private java.lang.String content;
	private java.lang.String notice;
	private java.lang.String helptext;
	private java.lang.String synopsis;
	private java.math.BigDecimal startPrice;
	private java.lang.Integer hitNumber;
	private java.lang.Integer saleNumber;
	private java.lang.Integer del;
	private String smallImage;
	
	private int[] insTypes;
	//columns END
	public java.lang.Integer getInsId() {
		return this.insId;
	}
	
	public void setInsId(java.lang.Integer value) {
		this.insId = value;
	}
	public java.lang.String getTitle() {
		return this.title;
	}
	
	public void setTitle(java.lang.String value) {
		this.title = value;
	}
	public java.lang.Integer getCompanyId() {
		return this.companyId;
	}
	
	public void setCompanyId(java.lang.Integer value) {
		this.companyId = value;
	}
	public java.lang.String getProperty() {
		return this.property;
	}
	
	public void setProperty(java.lang.String value) {
		this.property = value;
	}
	public java.lang.String getLinkUrl() {
		return this.linkUrl;
	}
	
	public void setLinkUrl(java.lang.String value) {
		this.linkUrl = value;
	}
	public java.lang.Integer getInsType() {
		return this.insType;
	}
	
	public void setInsType(java.lang.Integer value) {
		this.insType = value;
	}
	public java.lang.String getKeyword() {
		return this.keyword;
	}
	
	public void setKeyword(java.lang.String value) {
		this.keyword = value;
	}
	public java.lang.String getSoruce() {
		return this.soruce;
	}
	
	public void setSoruce(java.lang.String value) {
		this.soruce = value;
	}
	public java.lang.Integer getSort() {
		return this.sort;
	}
	
	public void setSort(java.lang.Integer value) {
		this.sort = value;
	}
	public java.lang.String getContent() {
		return this.content;
	}
	
	public void setContent(java.lang.String value) {
		this.content = value;
	}
	public java.lang.String getNotice() {
		return this.notice;
	}
	
	public void setNotice(java.lang.String value) {
		this.notice = value;
	}
	public java.lang.String getHelptext() {
		return this.helptext;
	}
	
	public void setHelptext(java.lang.String value) {
		this.helptext = value;
	}
	public java.lang.String getSynopsis() {
		return this.synopsis;
	}
	
	public void setSynopsis(java.lang.String value) {
		this.synopsis = value;
	}
	public java.math.BigDecimal getStartPrice() {
		return this.startPrice;
	}
	
	public void setStartPrice(java.math.BigDecimal value) {
		this.startPrice = value;
	}
	public java.lang.Integer getHitNumber() {
		return this.hitNumber;
	}
	
	public void setHitNumber(java.lang.Integer value) {
		this.hitNumber = value;
	}
	public java.lang.Integer getSaleNumber() {
		return this.saleNumber;
	}
	
	public void setSaleNumber(java.lang.Integer value) {
		this.saleNumber = value;
	}
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}
	
	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}
	
	public java.lang.Integer getDel() {
		return this.del;
	}
	
	public void setDel(java.lang.Integer value) {
		this.del = value;
	}
	
	

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCategoryTitle() {
		return categoryTitle;
	}

	public void setCategoryTitle(String categoryTitle) {
		this.categoryTitle = categoryTitle;
	}

	public int[] getInsTypes() {
		return insTypes;
	}

	public void setInsTypes(int[] insTypes) {
		this.insTypes = insTypes;
	}

	public String getSmallImage() {
		return smallImage;
	}

	public void setSmallImage(String smallImage) {
		this.smallImage = smallImage;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("InsId",getInsId())
			.append("Title",getTitle())
			.append("CompanyId",getCompanyId())
			.append("Property",getProperty())
			.append("LinkUrl",getLinkUrl())
			.append("InsType",getInsType())
			.append("Keyword",getKeyword())
			.append("Soruce",getSoruce())
			.append("Sort",getSort())
			.append("Content",getContent())
			.append("Notice",getNotice())
			.append("Helptext",getHelptext())
			.append("Synopsis",getSynopsis())
			.append("StartPrice",getStartPrice())
			.append("HitNumber",getHitNumber())
			.append("SaleNumber",getSaleNumber())
			.append("CreateDate",getCreateDate())
			.append("UpdateDate",getUpdateDate())
			.append("CreateBy",getCreateBy())
			.append("UpdateBy",getUpdateBy())
			.append("Del",getDel())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getInsId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof InsuranceEntity == false) return false;
		if(this == obj) return true;
		InsuranceEntity other = (InsuranceEntity)obj;
		return new EqualsBuilder()
			.append(getInsId(),other.getInsId())
			.isEquals();
	}

	public int[] getInsIds() {
		return insIds;
	}

	public void setInsIds(int[] insIds) {
		this.insIds = insIds;
	}
	
	
}

